//
//  LSDatePickerView.h
//  LSDatePickerViewDemo
//
//  Created by Shawn Li on 15/11/9.
//  Copyright (c) 2015年 Shawn Li. All rights reserved.
//

#import <UIKit/UIKit.h>
typedef enum{
    
    // 开始日期
    DateTypeOfStart = 0,
    
    // 结束日期
    DateTypeOfEnd,
    
}DateType;

typedef enum{
    //时间
    DatePickerTypeOfTime = 0,
    //日期
    DatePickerTypeOfDate,
    //时间和日期
    DatePickerTypeOfDateAndTime,
    
}DatePickerType;

@protocol LSDatePickerViewDelegate <NSObject>
@optional
- (void)getSelectDate:(NSString *)date;
- (void)getSelectDate:(NSString *)date type:(DateType)type;

@end

@interface LSDatePickerView : UIView
/*! 时间选择显示类别*/
@property (nonatomic, assign) DatePickerType  datePickerType;
/*! 分钟时间间隔*/
@property (nonatomic, assign) NSInteger  minuteInterval;
/*! 是否可以选择今天以前的时间,默认为YES*/
@property (nonatomic, assign) BOOL  isBeforeTime;

@property (weak, nonatomic) IBOutlet UIDatePicker *datePicker;
@property (nonatomic, weak) id<LSDatePickerViewDelegate> delegate;
@property (nonatomic, assign) DateType type;

+ (LSDatePickerView *)instanceDatePickerView;
@end
